package com.tc.activiti.activiti.util;

import com.tc.activiti.user.entity.SysDept;
import com.tc.activiti.user.entity.SysUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

/**
 * @author zengqingfa
 * @date 2019/10/30 15:34
 * @description
 * @email zengqingfa_java@163.com
 */
public class CurrentContextUtil {

    protected static final Logger logger= LoggerFactory.getLogger(CurrentContextUtil.class);

    public static final ThreadLocal<SysUser> currentUserContext = new ThreadLocal<>();

    public static final ThreadLocal<SysDept> currentDeptContext = new ThreadLocal<>();


    public static ThreadLocal<SysUser> getCurrentUserContext() {
        return currentUserContext;
    }

    public static ThreadLocal<SysDept> getCurrentDeptContext() {
        return currentDeptContext;
    }

}
